2008年9月9日 — For all unstaged files in current working directory use: git restore . ... That together with git switch replaces the overloaded git checkout (see ...
Unstaging a single file: To unstage a specific file, use the git reset command followed by the file path: git reset <file-path> · Unstaging all files: If you ...
2023年3月15日 — The Solution. To unstage files, use git reset . Without arguments, this will unstage all changes to all files. To unstage a specific file, ...